package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.common.R;
import com.itheima.dto.OrdersDto;
import com.itheima.pojo.Orders;

public interface OrdersService extends IService<Orders> {

    /**
     * <p>Description: 用户下单</p>
     *
     * @author liuyiming
     * @date 2022-10-15 19:59
     * @version 1.0.0
     */
    public void submit(Orders order);

    /**
     * <p>Description: 分页查询所有订单信息</p>
     *
     * @author liuyiming
     * @date 2022-10-16 18:32
     * @version 1.0.0
     */
    public Page<Orders> pageInfo(int page, int pageSize, Long number, String beginTime, String endTime);

    /**
     * <p>Description: 用户分页查询自己的订单</p>
     *
     * @author liuyiming
     * @date 2022-10-17 12:20
     * @version 1.0.0
     */
    public Page pageInfo(int page, int pageSize);

    /**
     * <p>Description: 再来一单</p>
     *
     * @author liuyiming
     * @date 2022-10-17 14:23
     * @version 1.0.0
     */
    void again(Orders orders);

}
